<!DOCTYPE html>
<html lang="zh-cn">
<head>
<include file="Widget/head" />
<link rel="stylesheet" type="text/css" href="__CSS__/Home/defaut.css">
<link rel="stylesheet" type="text/css" href="__CSS__/Home/distance.css">
<link rel="stylesheet" type="text/css" href="__CSS__/Home/button.css">
<link rel="stylesheet" type="text/css" href="__CSS__/Home/font.css">
<link href="__CSS__/Home/global.css" rel="stylesheet" type="text/css">
<link href="__CSS__/Home/member.css" rel="stylesheet" type="text/css">
</head>
<body>
{:W('Page/menu')}
{:W('Page/shanginfo')}
<div class="contt">
	<div class="halltop">
    	<div class="hallr" style="width:100%;">
	        <ul style="width:520px; float:left;">
	            <li class="hallrsld"><a href="{:U('Shang/lists')}" class="lsitico2">任务大厅</a></li>
	            <li><a href="{:U('Shang/mylists?flag=mylists')}" class="lsitico3">我的任务</a></li>
	            <li><a href="{:U('Shang/userinfo')}" class="lsitico3">个人中心</a></li>
	            <li><a href="{:U('Index/tuijian')}" class="lsitico3">推荐</a></li>
	            <div class="clr"></div>
	        </ul>
	        <div style="width:130px; float:right; padding-top: 15px;">
	        	<span class="bbtn dis_l50 cdshuaxin" style="margin-left:auto; float:left;"><a href="{:U('Shua/lists')}" ></a></span>&nbsp;
	        </div>
    	</div>
        <div class="clr"></div>
	</div>
	
    <div class="mydata_ctl">
        <div class="ord_ctt">
            <div class="ordtop2"><a class="sorange" href="{:U('Shang/userinfo')}">个人资料</a></div>
            <div class="ordtop2"><a href="{:U('Shang/usermima')}">修改密码</a></div>
            <div class="ordtop2"><a href="{:U('Shang/jiaoyimima')}">修改交易密码</a></div>
            <div class="ordtop2"><a class="sorange" href="{:U('Shang/userzijin')}">资金明细</a></div>
            <div class="ordtop2"><a href="{:U('Shang/chongzhi')}">充值</a></div>
            <div class="ordtop2"><a href="{:U('Shang/tixian')}">提现</a></div>
            <div class="ordtop2"><a href="{:U('Shang/dianpu')}">绑定店铺</a></div>
            <div class="ordtop2"><a href="{:U('Index/fanxian')}">推荐返现</a></div>
            <div class="ordtop1"><a href="{:U('Shang/renzheng')}">认证</a></div>
    
			<form action="{:U('Shua/renzheng')}" method="post" enctype="multipart/form-data">
				<div class="ord_ctt">
		            <div class="srrz_ctl">
		            	<span class="tswz"></span>
		                <div id="div_renzheng1" class="hiddshow">
		                	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		                    	<tbody><tr>
		                        	<td width="15%"><span class="red1">*</span>姓名：</td>
		                            <td width="85%"><input name="realname" type="text" id="trueName" maxlength="4" class="input-text w70" value="{$info['realname']}"><span>*中文姓名（2-4个汉字）</span></td>
		                            </tr>
		                            <tr>
		                                <td><span class="red1">*</span>身份证号码：</td>
		                                <td><input name="cardid" type="text" id="cardNo" maxlength="18" class="input-text w230" value="{$info['idcard']}"></td>
		                            </tr>                            
		                    </tbody></table>
		                </div>
		                <div id="div_renzheng2" class="hidd">
		                	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		                    	<tbody>
		                    	<tr>
		                        	<td><span class="red1">*</span>身份证正面：</td>
		                            <td>
		                            	<div class="input-file">
		                                	<span class="text">重新上传</span>
		                                    <input id="zhengmian" name="zhengmian" type="file" style="width: 150px;" class="file">
		                                </div>
		                               	<span id="showimg_cZm"><img src="{$info['zhengmian']}" id="zheng" width="200px" height="113px"></span>
		                                <span id="fs_cZm"></span>
		                                <img src="__IMG__/sfrz00.jpg">
		                            </td>
		                        </tr>
		                        <tr>
		                        	<td><span class="red1">*</span>身份证手持：</td>
		                                <td>
		                                	<div class="input-file">
		                                		<span class="text">重新上传</span>
		                                    	<input id="beimian" name="beimian" type="file" style="width: 150px;" class="file">
			                                </div>
			                               	<span id="showimg_cZm"><img src="{$info['beimian']}" id="bei" width="200px" height="113px"></span>
			                                <span id="fs_cZm"></span>
			                                <img src="__IMG__/sfrz00.jpg">
		                                </td>
		                            </tr>
		                        </tbody></table>
		                </div>
						<div style="margin-top: 20px;">
							<button class="smrzbt" name="submit" id="button" onclick="chktijiao();">实名认证提交</button>
						</div>
		            </div>
		         </div>
		    </form>
    	</div>
    </div>	
    <div class="clr"></div>
</div>
<script>
$("#zhengmian").change(function(){
	var objUrl = getObjectURL(this.files[0]) ;
	console.log("objUrl = "+objUrl) ;
	if (objUrl) {
		$("#zheng").attr("src", objUrl) ;
	}
}) ;
$("#beimian").change(function(){
	var objUrl = getObjectURL(this.files[0]) ;
	console.log("objUrl = "+objUrl) ;
	if (objUrl) {
		$("#bei").attr("src", objUrl) ;
	}
}) ;
//建立一個可存取到該file的url
function getObjectURL(file) {
	var url = null ; 
	if (window.createObjectURL!=undefined) { // basic
		url = window.createObjectURL(file) ;
	} else if (window.URL!=undefined) { // mozilla(firefox)
		url = window.URL.createObjectURL(file) ;
	} else if (window.webkitURL!=undefined) { // webkit or chrome
		url = window.webkitURL.createObjectURL(file) ;
	}
	return url ;
}
</script>
{:W('Page/foot')}

</body>
</html>